﻿using HRX.PayCenter.ApplicationCore.Entities;
using HRX.PayCenter.ApplicationCore.Specifications;
using System;
using System.Collections.Generic;
using System.Text;
using static HRX.PayCenter.ApplicationCore.Specifications.BizConst;

namespace UnitTests.Builders
{
    /// <summary>
    /// 阿里支付订单
    /// </summary>
    public class AlipayOrderBuilder
    {
        private AlipayOrderEntity _alipayOrderEntity;

        public AlipayOrderBuilder()
        {
            _alipayOrderEntity = WithDefaultValues();
        }

        public AlipayOrderEntity Builder()
        {
            return _alipayOrderEntity;
        }

        public AlipayOrderEntity WithDefaultValues()
        {
            return new AlipayOrderEntity
            {
                OrderNo = IdGenHelper.GenOrderNo(OrderNoFlag.AlipayFlag),
                AddTime = DateTime.Now,
                Amount = 1,
                DiviseRate = "7:2:1"
            };
        }
    }
}
